import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);

import home from "../pages/home/home.vue";
import search from "../pages/search/search.vue";
import order from "../pages/order/order.vue";
import profile from "../pages/profile/profile.vue";
import login from "../pages/login/login.vue";

export default new VueRouter({
  routes: [
    { path: "/", redirect: "/home" },
    { path: "/home", component: home, meta: { footerShow: true } },
    { path: "/search", component: search, meta: { footerShow: true } },
    { path: "/order", component: order, meta: { footerShow: true } },
    { path: "/profile", component: profile, meta: { footerShow: true } },
    { path: "/login", component: login }
  ]
});
